<?php
// 提交回复信息
// header("content-type:text/html;charset=UTF-8");
include_once("conn.php");
include_once("d_getLoginInfo.php");

$replay_con = $_GET["replay_con"];
$msgID = $_GET["msg_ID"];

//设置中国时区
date_default_timezone_set('Asia/Shanghai');
// 获取当前日期
$getNowDate = date('Y-m-d H:i:s');

$insert =
    "INSERT INTO replay_msg_infos (doc_ID, msg_ID, replay_date, replay_content) 
 VALUES ('" . $doc_ID . "', '" . $msgID . "', '" . $getNowDate . "', '" . $replay_con . "')";

if (mysqli_query($connect_DB, $insert)) {
    echo "<script>alert('回复提问成功！');location='doc_ReplayMsg.php';</script>";
} else {
    echo "<script>alert('回复提问失败！请稍后重试！');history.go(-1);</script>";
}

$connect_DB->close();
?>